<template>
	<view class="information">
		<view class="navigation">
			<view class="navigation_back" @tap="backref()">
				<uni-icons type="back" size="24" color="#fff"></uni-icons>
			</view>
			<view class="navigation_title">
				我的资料
			</view>
		</view>
		<view class="infor_form">
				<view class="checkout_con_bt">
					<view class="checkout_con_remark">
						<view class="checkout_bt_label">
							店铺名称
						</view>
						<view class="checkout_bt_input">
							<!-- <input type="text" v-model="info.name" placeholder="请输入店铺名称" placeholder-class="placeholder"> -->
							<span>{{info.name}}</span>
						</view>
					</view>
				</view>
				<view class="checkout_con_bt">
					<view class="checkout_con_remark">
						<view class="checkout_bt_label">
							联系人
						</view>
						<view class="checkout_bt_input">
							<!-- <input type="text" v-model="info.userName" placeholder="请输入联系人" placeholder-class="placeholder"> -->
							<span>{{info.userName}}</span>
						</view>
					</view>
				</view>
				<view class="checkout_con_bt">
					<view class="checkout_con_remark">
						<view class="checkout_bt_label">
							电话
						</view>
						<view class="checkout_bt_input">
							<!-- <input type="text" v-model="info.userPhone" placeholder="请输入电话" placeholder-class="placeholder"> -->
							<span>{{info.userPhone}}</span>
						</view>
					</view>
				</view>
				<view class="checkout_con_bt">
					<view class="checkout_con_remark">
						<view class="checkout_bt_label">
							地址
						</view>
						<view class="checkout_bt_input">
							<!-- <input type="text" v-model="info.address" placeholder="请输入地址" placeholder-class="placeholder"> -->
							<span>{{info.address}}</span>
						</view>
					</view>
				</view>
				<view class="checkout_con_bt">
					<view class="checkout_con_remark">
						<view class="checkout_bt_label">
							<!-- 支付宝账号 -->
							微信二维码
						</view>
						<view class="checkout_bt_input">
							<!-- <input type="text" v-model="info.userCard" placeholder="请输入支付宝账号" placeholder-class="placeholder"> -->
							<!-- <span>{{info.userCard}}</span> -->
							<image style="height: 60px;width: 60px;" :src="domain + info.userCard" mode=""></image>
						</view>
					</view>
				</view>
				<!-- <view class="checkout_con_bt">
					<view class="checkout_con_remark">
						<view class="checkout_bt_label">
							营业执照
						</view>
						<view class="imgUpload" @click="uploadImg(1)">
							<span v-if="!info.licenseImg">选择照片</span>
							<image style="height: 60px;width: 60px;" :src="domain + info.licenseImg" mode=""></image>
						</view>
					</view>
				</view>
				<view class="checkout_con_bt">
					<view class="checkout_con_remark">
						<view class="checkout_bt_label">
							身份证正面
						</view>
						<view class="imgUpload" @click="uploadImg(2)">
							<span v-if="!info.idcardFrontImg">选择照片</span>
							<image style="height: 60px;width: 60px;" :src="domain + info.idcardFrontImg" mode=""></image>
						</view>
					</view>
				</view>
				<view class="checkout_con_bt">
					<view class="checkout_con_remark">
						<view class="checkout_bt_label">
							身份证反面
						</view>
						<view class="imgUpload" @click="uploadImg(3)">
							<span v-if="!info.idcardBackImg">选择照片</span>
							<image style="height: 60px;width: 60px;" :src="domain + info.idcardBackImg" mode=""></image>
						</view>
					</view>
				</view> -->
				<view class="checkout_con_bt">
					<view class="checkout_con_remark">
						<view class="checkout_bt_label">
							门头照
						</view>
						<view class="imgUpload" @click="uploadImg(4)">
							<!-- <span v-if="!info.businessImg">选择照片</span> -->
							<image style="height: 60px;width: 60px;" :src="domain + info.businessImg" mode=""></image>
						</view>
					</view>
				</view>
		</view>
	</view>
</template>

<script>
	import { getStoreStatus } from '../../api/api.js'
	import server_url from '../../api/config.js'
	export default {
		data() {
			return {
				domain:server_url,
				info: {
					name:'',
					userName:'',
					address:'',
					userPhone:'',
					userCard:'',
					licenseImg:'',
					idcardFrontImg:'',
					idcardBackImg:'',
					businessImg:''
				},
			};
		},
		methods: {
			backref() {
				uni.navigateBack({
					delta: 1
				})
			},
		},
		onLoad() {
			getStoreStatus().then(res => {
				this.info = res.data
				uni.hideLoading()
			})
		}
	}
</script>

<style lang="scss">
	page {
		background: #f4f4f4;
	}
.navigation {
		width: 100%;
		height: 160rpx;
		background: linear-gradient(180deg, rgba(255, 141, 26, 1) 12.5%, rgba(255, 195, 0, 1) 100%);;
		
		padding: 60rpx 24rpx 0;
		text-align: center;
		position: relative;

		.navigation_back {
			position: absolute;
			top: 60rpx;
		}

		.navigation_title {
			color: #fff;
			font-size: 36rpx;
		}
	}
	.information {
		// padding-top: 80rpx;

		.infor_attr {
			position: relative;
			display: flex;
			justify-content: center;
			align-items: center;
			width: 280rpx;
			height: 280rpx;
			margin-left: 100rpx;
			border-radius: 50%;
			background-color: #FFFFFF;

			.infor_attr_img {
				width: 236rpx;
				height: 236rpx;

				image {
					width: 236rpx;
					height: 236rpx;
					border-radius: 50%;
				}
			}

			.infor_add {
				position: absolute;
				bottom: 20rpx;
				right: 20rpx;

				image {
					width: 60rpx;
					height: 60rpx;
				}
			}
		}

		.infor_content {
			width: 100%;
			height: 270rpx;
			background: url('../../static/image/memberCenter/bk-profil.svg') no-repeat -220rpx -150rpx;
			margin-top: -60rpx;
			padding: 130rpx 50rpx 0;

			.infor_content_title {
				color: #53586E;
				font-size: 52rpx;
			}
		}

		.infor_form {
			background-color: #fff;
			margin-top: -60rpx;
			padding: 0 50rpx;
			padding-top: 60rpx;
			// height: calc(100vh - 270rpx - 290rpx);

			.checkout_con_bt {
				// padding: 10px 32rpx;
				background-color: #fff;
				border-radius: 12rpx;
				margin-top: 24rpx;

				.checkout_con_remark {
					display: flex;
					justify-content: space-between;
					align-items: center;
					padding: 32rpx 0;
					border-bottom: 1rpx solid #E8E7E7;
				}

				.checkout_con_tableware {
					display: flex;
					justify-content: space-between;
					align-items: center;
					padding: 32rpx 0;
				}

				.checkout_bt_label {
					color: #2E343A;
					font-weight: 500;
					font-size: 28rpx;
				}

				.checkout_bt_input {
					input {
						text-align: right;
						color: #2E343A;
						font-weight: 500;
						font-size: 28rpx;

						&.placeholder {
							color: #9098A0;
						}
					}

				}
			}
		}
	}
</style>
